<?php
session_start();
function getlang(){
		$lang = $_SESSION['lang'];
		if (empty($lang) || $lang == "EN") {
			$value = "../value/value_en.php";
		} else if($lang == "VN") {
			$value = "../value/value_vn.php";
		}
		else {
			$value = "../value/value_kr.php";
		}
		return $value;
	}
$value = getlang();
include($value);
$listapprove=$_SESSION['listapprove'];

function getten($id){
	include '../operations/connection.php';	
	$sql="select FullName from employee where IDEmployee='$id'";
	$query=mysql_query($sql);
	
	$row=mysql_fetch_array($query);
	
	return $row['FullName'];
}


	$mangone=array();
	$co=1;
	if(count($listapprove)>0){
		foreach ($listapprove as $approve=>$abc){
			
			if ($approve!=$_GET['q']){
				$list[$approve]=$abc;
				$listname[$approve]=$listapprovename[$approve];
			}
		}
		$listapprove=$list;
	}


if(count($listapprove)>0){
?>

							<table width="100%" class="templ" cellspacing="0">
	                            	<tr class="titapp titapp2">
	                                	<td><div align="center"><?=$l_approver?></div></td>
	                                    <td width="50px">  	</td>
	                                </tr>
	                                <?php foreach ($listapprove as $approve =>$ten){?>
	                                <tr>
	                                	<td><div align="center"><?=$ten?></div></td>
	                                	<td width="50px"><div align='center'><a onclick='delApprove(<?=$approve?>)' ><img src='images/del.png'  alt='' width='10px' style='border:1px solid #eee; margin-right:10px' /></a></div></td>
	                                    
	                                </tr>
	                                <?php }?>
	                            </table>
<?php }else{
?>

								<table width="100%" class="templ" cellspacing="0">
	                            	<tr class="titapp titapp2">
	                                	<td><div align="center"><?=$l_approver?></div></td>
	                                    <td width="50px">
	                                   	</td>
	                                </tr>
	                                <tr>
	                                	<td colspan='2'><?=$l_no_record?></td>
	                                    
	                                </tr>
	                                
	                            </table>

<?php 
}?>
<?php
	$_SESSION['listapprove']=$listapprove;
?>